import api from '@/api/index'

// 会员列表
const getConfigList = params => api.get('/admin/config/list', {params: params})

// 编辑会员
const editConfigList = params => api.post('/admin/config/edit', params)

// 版本列表
const getVersionList = params => api.get('/admin/version/list', {params: params})

// 新增版本
const versionAdd = params => api.post('/admin/version/add', params)

// 版本详情
const findVersion = params => api.get('/admin/version/find', {params: params})

// 编辑版本
const versionEdit = params => api.post('/admin/version/edit', params)

export {
    getConfigList,
    editConfigList,
    getVersionList,
    versionAdd,
    findVersion,
    versionEdit
}
